package per.zhang.vaccinesys.serverConsumer.tset.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import per.zhang.vaccinesys.serverConsumer.tset.service.TestService;

/**
 * @auther zhang
 * @ TO DO
 * @creatTime 2021/1/14 16:19
 **/

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private TestService testService;

    @RequestMapping("/hello")
    public String hello(){
        System.out.println(testService.hello());
        return testService.hello();
    }

}
